package xyj.sparrow.discovery.zk.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 江南小俊
 * @since 2021/6/18
 **/
@ConfigurationProperties("xyj.sparrow.discovery.zk")
@Data
public class ZkConf {
    /**
     * zookeeper ip地址
     */
    private String address;
    /**
     * zookeeper 端口号 默认2181
     */
    private int port = 2181;
    /**
     * 是否使用zookeeper功能 默认开启
     */
    private boolean enabled = true;
}
